import React, { Component } from 'react';
import { Icon } from 'weaver-mobile';

export default class AddBtn extends Component {
	render() {
		const {
			name,
			onClick
		} = this.props;

		return (
			<div className="operate-group-addBtn" onClick={onClick}>
				<Icon type="plus" size="xs" />
				<span>{name}</span>
			</div>
		);
	}
}